package com.store.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2025-01-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_message")
public class Message extends PageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "message_id", type = IdType.ID_WORKER_STR)
    private String messageId;

    /**
     * 店铺id
     */
    private String storeId;

    /**
     * 消息正文
     */
    private String content;

    /**
     * 发布人id
     */
    private String userId;

    /**
     * 发布人姓名(冗余字段)
     */
    private String userName;

    /**
     * 被回复的消息ID
     */
    private String responseMessageId;

    /**
     * 被回复人id
     */
    private String responseUserId;

    /**
     * 被回复人姓名(冗余字段)
     */
    private String responseUserName;

    /**
     * 发布时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否已删除(0已删除1未删除)
     */
    private String isDeleted;


}
